package com.yxx.business.mapper;

import java.util.List;

import com.yxx.business.entity.TbDemolitionPhaseDo;
import com.yxx.business.entity.TbDemolitionPhaseQueryDto;
import com.yxx.common.core.mapper.BaseMapperPlus;

/**
 * 拆除处置阶段Mapper接口
 *
 * @author yxx
 * @date 2025-08-16
 */
public interface TbDemolitionPhaseMapper extends BaseMapperPlus<TbDemolitionPhaseDo> {

    /**
     * 查询拆除处置阶段列表
     *
     * @param tbDemolitionPhaseQueryDto 拆除处置阶段查询实体
     * @return 拆除处置阶段集合
     */
    public List<TbDemolitionPhaseDo> selectTbDemolitionPhaseList(TbDemolitionPhaseQueryDto tbDemolitionPhaseQueryDto);

    /**
     * 查询拆除处置阶段
     *
     * @param demolitionId 拆除处置阶段主键
     * @return 拆除处置阶段单个
     */
    public TbDemolitionPhaseDo selectTbDemolitionPhaseByDemolitionId(Long demolitionId);

    /**
     * 新增拆除处置阶段
     *
     * @param tbDemolitionPhaseDo 拆除处置阶段数据库实体
     * @return 结果
     */
    public int insertTbDemolitionPhase(TbDemolitionPhaseDo tbDemolitionPhaseDo);

    /**
     * 修改拆除处置阶段
     *
     * @param tbDemolitionPhaseDo 拆除处置阶段数据库实体
     * @return 结果
     */
    public int updateTbDemolitionPhase(TbDemolitionPhaseDo tbDemolitionPhaseDo);

    /**
     * 删除拆除处置阶段
     *
     * @param demolitionId 拆除处置阶段主键
     * @return 结果
     */
    public int deleteTbDemolitionPhaseByDemolitionId(Long demolitionId);

    /**
     * 批量删除拆除处置阶段
     *
     * @param demolitionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbDemolitionPhaseByDemolitionIds(List<Long> demolitionIds);
}
